//
//  LoginTool.swift
//  WeiBoAPP
//
//  Created by ios001 on 2023/12/27.
//  Copyright © 2023 zxf. All rights reserved.
//

import UIKit

class LoginTool: NSObject {

    typealias LoginToolSuccessBlock = ()->Void

    
    /**
     登录
     */
    class  func showLogin(vc:UIViewController,successBlock:LoginToolSuccessBlock?) {
        
        let loginVC = ZYLoginViewController.init();
        vc.navigationController?.pushViewController(loginVC, animated: true)
        loginVC.loginSuccess = {
            if (successBlock != nil){
                successBlock!()
            }
        }
    }
    
}
